#!/bin/bash
function getProperty(){
  if [ "$#" != "2" ]; then
     echo "[ERROR]: Incorrect params"
     return 1
  fi
  local fileProperty=$1
  local propertyName=$2
  if [ -a ${fileProperty} ]; then
     echo `cat $fileProperty|grep ${propertyName}=|cut -f2 -d'='`
  else
     echo "[ERROR]: The file ${fileProperty} isn't exist"
     return 1
  fi 
  
}